package com.jomoo.css.common.core.util.reflect.criteria;

import com.jomoo.css.common.core.util.reflect.criteria.expression.PropertyExpression;
import com.jomoo.css.common.core.util.reflect.filter.PropertyFilter;

import java.util.ArrayList;
import java.util.List;


public class PropertyCriteriaImpl implements PropertyCriteria {

    private List<PropertyFilter> filters = new ArrayList<PropertyFilter>();

    public List<PropertyFilter> getFilters() {
        return filters;
    }

    public PropertyCriteria add(PropertyExpression expression) {
        filters.add(expression.toFilter());
        return this;
    }
}
